/*
 * 2005-11-16 lxm 创建。 
 */
package com.hd123.rumba.organization;

import java.util.List;

import net.sf.hibernate.HibernateException;

import com.hd123.rumba.exception.BusinessException;
import com.hd123.rumba.sql.DResultPage;

/**
 * @author lxm
 *
 */
public class DOrganizationPage extends DResultPage {

  private DOrganization[] elements;

  public void assignFrom(List list) throws BusinessException, HibernateException {
    super.assignFrom(list);
    elements = new DOrganization[list.size()];
    for (int i = 0; i < list.size(); i++) {
      DOrganization d = new DOrganization();
      d.assignFrom((IOrganization) list.get(i));
      elements[i] = d;
    }
  }
  
  public DOrganization[] getElements() {
    return elements;
  }

  public void setElements(DOrganization[] elements) {
    this.elements = elements;
  }
  
  
}
